package org.dtrd.modules.record.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.dtrd.modules.record.entity.po.DtrdEntRdSigninFoodRecord;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DtrdEntRdFoodRecordMapper extends BaseMapper<DtrdEntRdSigninFoodRecord> {

    Integer selectFoodRecordDateCount(@Param("patientId") Integer patientId, @Param("startDate") String startDate, @Param("endDate") String endDate);

    List<DtrdEntRdSigninFoodRecord> getAllGroupedFoodRecord(@Param("patientId") Integer patientId, @Param("startDate") String startDate, @Param("endDate") String endDate);
}